<template>
    <div>
        <el-form label-width="70px">
            <el-form-item label="背景图片">
                <el-radio-group v-model="content.enabled">
                    <el-radio :label="1">系统默认</el-radio>
                    <el-radio :label="2">自定义</el-radio>
                </el-radio-group>
            </el-form-item>
            <el-form-item v-show="content.enabled === 2">
                <div>
                    <material-picker v-model="content.customImg" exclude-domain />
                    <div class="form-tips">建议图片尺寸：750px*400px</div>
                </div>
            </el-form-item>
        </el-form>
    </div>
</template>
<script lang="ts" setup>
import type { PropType } from 'vue'
import type options from './options'
type OptionsType = ReturnType<typeof options>
const props = defineProps({
    content: {
        type: Object as PropType<OptionsType['content']>,
        default: () => ({})
    },
    styles: {
        type: Object as PropType<OptionsType['styles']>,
        default: () => ({})
    }
})
</script>

<style lang="scss" scoped>
.content {
    padding: 10px;
    border-radius: 4px;
    background: rgba(65, 83, 255, 0.06);
    .desc {
        font-weight: 400;
        font-size: 12px;
        text-align: left;
        color: #4153ff;
    }
}
</style>
